#include "mythread.h"
#include <QDebug>

MyThread::MyThread(QObject *parent) : QThread(parent)
{

}

void MyThread::run(){
    long long data = 100000000;
    long long rst = 0;

    qDebug() << "son thread run" ;

    while(data--){
        rst += data;
    }

    emit caculate_over(rst);

    qDebug() << "count complate:" << rst;
    return;
}
